export default url => {
    const crud = window.$crud(url)

    const getviewtoken = (data) => window.$axios({
        url: `https://api.qukai3d.com/api/dt/app/scene-token`,
        method: 'post',
        data: data,
    })
    const getAccessToken = (data) => window.$axios({
        url: `https://id.qukai3d.com/api/sso/auth/token`,
        method: 'post',
        data: data,
    })
    const getList = (token, AccessToken) => window.$axios({
        url: `https://api.qukai3d.com/api/open/scene/list`,
        method: 'get',
        headers: {
            token,
            Authorization:`Bearer ${AccessToken}`
        }
    })

    return {
        ...crud,
        getviewtoken,
        getAccessToken,
        getList
    }
}   